<template>
	<view class="bottleBox">
		<view class="bottleBox1">
			<view class="bottleCapMoney">
				<image src="https://lovebirdopen.com/static/img/wineTasting/bottleCapMoney.png" mode=""></image>
				<view class="bottleCapRule">活动规则</view>
			</view>
			<view class="capButtom">
				积攒瓶盖品好酒
			</view>
			<view class="myBottleCap">
				<view class="bottleCapTitle">
					<view class="title_interval">我的瓶盖</view>
					<view class="title_interval3"></view>				
					<view class="title_interval2">喝酒集瓶盖兑换</view>
				</view>
				<view class="convertible">
					可兑换
				</view>
				<view class="s_convertible">
					<view class="convertibles">
						<view class="convertible_1">
							8 <text>个</text>
						</view>
						<view class="convertible_2">
							当前瓶盖
						</view>
						<view class="convertible_3">
							前去兑换
						</view>
					</view>
					<view class="convertibles">
						<view class="convertible_1">
							12 <text>个</text>
						</view>
						<view class="convertible_2">
							累计瓶盖
						</view>
						<view class="convertible_4">
							已超过80%用户
						</view>
					</view>
					<view class="convertibles">
						<view class="convertible_1">
							8 <text>瓶</text>
						</view>
						<view class="convertible_2">
							已兑换
						</view>
						<view class="convertible_4">
							扫码集瓶盖
						</view>
					</view>
				</view>
			</view>
			
			<view class="scanCode">
				<view class="scanCode_1">
					<view class="scanCode_one">扫一扫</view>
				</view>
				<view class="scanCode_2">
					<view class="scanCode_two">去兑换</view>
				</view>
			</view>
			<view class="wholeNetwork">
				全网排行榜
			</view>
			<view class="wineFairy">
				<view class="gettop">
					<view class="wineFairy_one">拥有瓶盖</view>
					<view class="wineFairy_two">50个</view>
					<u-line color="#F5F5F5" />
					<view class="wineFairy_three">
						<u-avatar :src="src" size="48"></u-avatar>
						<view class="wineFairy_1">
							***name
						</view>
					</view>
				</view>
				<view class="getleft">
					<view class="wineFairy_one">拥有瓶盖</view>
					<view class="wineFairy_two">50个</view>
					<u-line color="#F5F5F5" />
					<view class="wineFairy_three">
						<u-avatar :src="src" size="48"></u-avatar>
						<view class="wineFairy_1">
							***name
						</view>
					</view>
				</view>
				<view class="getbuttom">
					<view class="wineFairy_one">拥有瓶盖</view>
					<view class="wineFairy_two">50个</view>
					<u-line color="#F5F5F5" />
					<view class="wineFairy_three">
						<u-avatar :src="src" size="48"></u-avatar>
						<view class="wineFairy_1">
							***name
						</view>
					</view>
				</view>
			</view>
			<view class="wineFairyListTabs">
				<view class="wineFairyList_title">
					<view>名次</view>
					<view>头像</view>
					<view style="margin-left: 27rpx;">昵称</view>
				</view>
				<view class="FairyList_1">
					拥有瓶盖
				</view>
			</view>
			<view class="wineFairyList" v-for="(item,index) in FairyList" :key="ranking">
				<view class="wineFairyListUO">
					<view>{{item.ranking}}</view>
					<view class="wineFairyListLogo"><image :src="item.logo" mode=""></image></view>
					<view style="width: 48%;margin-left: 30rpx;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;">
						{{item.nikeName}}
					</view>
				</view>
				<view class="FairyList_1">
					{{item.number}}
				</view>
			</view>
			
			<view class="more">
				<view class="more_title">查看更多</view>
				<u-icon name="arrow-down" color="#fff" size="16"></u-icon>
			</view>
			
		</view>
		<u-mask :show="capshow">
			<view class="warp">
				<view class="rect" @tap.stop>
					<view class="getTheCap">
						<image src="https://lovebirdopen.com/static/img/wineTasting/getTheCap.png" mode=""></image>
					</view>
					<view class="getTheCapclose" @click="capshow = false">
						<u-icon name="close-circle" color="#E8E8E8" size="40"></u-icon>
					</view>
				</view>
			</view>
		</u-mask>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				capshow: true,
				src:'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
				FairyList:[
					{
						ranking: 4,
						logo:'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
						nikeName:'春宵苦短日高起',
						number:50
					},
					{
						ranking: 5,
						logo:'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
						nikeName:'从此君王不早朝',
						number:50
					},
					{
						ranking: 6,
						logo:'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
						nikeName:'金屋妆成娇侍夜',
						number:50
					},
					{
						ranking: 7,
						logo:'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
						nikeName:'玉楼宴罢醉和春',
						number:50
					},
					{
						ranking: 8,
						logo:'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
						nikeName:'玉楼宴罢醉和春',
						number:50
					},
					{
						ranking: 9,
						logo:'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
						nikeName:'玉楼宴罢醉和春',
						number:50
					},
					{
						ranking: 9,
						logo:'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
						nikeName:'玉楼宴罢醉和春',
						number:50
					}
				]
			}
		}
	}
</script>

<style lang="scss" scoped>
	.bottleBox{
		min-height: 100%;
		overflow: hidden;
		background: linear-gradient(180deg, #FFE1BB 0%, #FF932F 40.1%, #EF6F27 52.08%, #E46219 100%);
		.bottleBox1{
			width: 100%;
			margin-bottom: 80rpx;
			overflow: hidden;
			background-image: url('https://lovebirdopen.com/static/img/wineTasting/bottleCap_bg.png');
			background-repeat: no-repeat;
			background-size: 100% 30.5%;
		}
	}
	.bottleCapMoney{
		// height: 100%;
		width: 100%;
		overflow: hidden;
		display: flex;
		justify-content: center;
		align-items: center;
		image{
			height: 82rpx;
			width: 380rpx;
			margin-left: 130rpx;
			margin-top: 32rpx;
		}
		.bottleCapRule{
			height: 40rpx;
			width: 128rpx;
			color: #FFFFFF;
			font-family: PingFang SC;
			font-size: 28rpx;
			line-height: 37rpx;
			text-align: center;
			margin-left: 34rpx;
			background: rgba(0, 0, 0, 0.24);
			border: 1px solid rgba(255, 255, 255, 0.7);
			box-sizing: border-box;
			border-radius: 8rpx;
		}
	}
	.capButtom{
		height: 64rpx;
		width: 320rpx;
		margin: 0 auto;
		margin-top: 24rpx;
		background: linear-gradient(180deg, #FFCB44 0%, #FFAD32 100%);
		box-shadow: 0px 8rpx 16rpx rgba(191, 92, 0, 0.1);
		border-radius: 96rpx;
		text-align: center;
		font-size: 32rpx;
		line-height: 64rpx;
		color: #FFFFFF;
	}
	.myBottleCap{
		height: 300rpx;
		width: 686rpx;
		margin: 0 auto;
		margin-top: 442rpx;
		overflow: hidden;
		background: url("https://lovebirdopen.com/static/img/wineTasting/myBottleCap.png");
		background-size: 100% 100%;
		background-repeat: no-repeat;
	}
	.bottleCapTitle{
		height: 52rpx;
		width: 58%;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 24rpx;
		margin-left: 24rpx;
		
		.title_interval{
			height: 52rpx;
			width: 160rpx;
			font-family: PingFang SC;
			font-size: 36rpx;	
			color: #7B5D34;
		}
		.title_interval3{
			height: 30rpx;
			width: 4rpx;
			color: #7B5D34;
			border-right: 2rpx solid #7b5d34;
		}
		.title_interval2{
			height: 52rpx;
			width: 200rpx;
			line-height: 52rpx;
			text-align: center;
			font-family: PingFang SC;
			font-size: 24rpx;	
			color: #7B5D34;
		}
		
	}
	
	/*
		我的信息部分
	
	*/
	
	.convertible{
		height: 40rpx;
		width: 104rpx;
		font-family: PingFang SC;
		font-size: 24rpx;
		line-height:40rpx;
		text-align: center;
		color: #FFCE4F;
		margin-left: 116rpx;
		background-color: #ff5238;
		border-radius:  20rpx 20rpx 20rpx 0rpx;
	}
	.convertibles{
		height: 144rpx;
		width: 33%;
	}
	.s_convertible{
		height: 144rpx;
		width: 100%;
		display: flex;
		align-items: baseline;
		justify-content: center;
	}
	.convertible_1{
		height: 40rpx;
		// width: ;
		font-family: PingFang SC;
		font-weight: bold;
		font-size: 48rpx;
		line-height: 40rpx;
		text-align: center;
		display: flex;
		align-items: baseline;
		justify-content: center;
		color: #FF5238;
		
		text{
			font-family: PingFang SC;
			font-size: 24rpx;
			// line-height: 24rpx;
			margin-left: 4rpx;
			text-align: center;
			color: #FF5238;
		}
	}
	.convertible_2{
		height: 24rpx;
		font-family: PingFang SC;
		font-size: 24rpx;
		line-height: 24rpx;
		text-align: center;
		margin-top: 16rpx;
		color: #B79658;

	}
	.convertible_3{
		height: 36rpx;
		width: 136rpx;
		background: #F2E0BD;
		font-size: 24rpx;
		border-radius: 36rpx;
		margin: 0 auto;
		margin-top: 8rpx;
		line-height: 36rpx;
		text-align: center;
		color: #7B5D34;
	}
	.convertible_4{
		height: 24rpx;
		width: 174rpx;
		font-size: 24rpx;
		border-radius: 36rpx;
		margin: 0 auto;
		margin-top: 8rpx;
		line-height: 36rpx;
		text-align: center;
		color: #7B5D34;
	}
	.scanCode{
		height: 162rpx;
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-top: 16rpx;
		
		.scanCode_1{
			height: 154rpx;
			width: 152rpx;
			margin: 10rpx;
			margin-right: 70rpx;
			position: relative;
			// background: #007AFF;
			background-image: url("https://lovebirdopen.com/static/img/wineTasting/scanCode_bg.png");
			background-size: 100% 100%;
			background-repeat: no-repeat;
			
			.scanCode_one{
				position: absolute;
				width: 104rpx;
				height: 40rpx;
				left: 108rpx;
				top: 0px;
				font-size: 24rpx;
				line-height: 40rpx;			
				text-align: center;				
				color: #FFE976;
				background: #FF5238;
				border-radius: 20rpx 20rpx 20rpx 0px;
			}
		}
		.scanCode_2{
			height: 154rpx;
			width: 152rpx;
			margin: 10rpx;
			position: relative;
			// background: #007AFF;
			background-image: url("https://lovebirdopen.com/static/img/wineTasting/scanCode_bg1.png");
			background-size: 100% 100%;
			background-repeat: no-repeat;
			.scanCode_two{
				position: absolute;
				width: 104rpx;
				height: 40rpx;
				left: 108rpx;
				top: 0px;
				font-size: 24rpx;
				line-height: 40rpx;			
				text-align: center;				
				color: #FFE976;
				background: #FF5238;
				border-radius: 20rpx 20rpx 20rpx 0px;
			}
		}
	}
	.wholeNetwork{
		height: 84rpx;
		width: 452rpx;
		margin: 0 auto;
		margin-top: 32rpx;
		align-items: center;
		justify-content: center;
		font-family: PingFang SC;
		font-size: 32rpx;
		line-height: 84rpx;
		text-align: center;
		color: #FFFFFF;
		background-image: url('https://lovebirdopen.com/static/img/wineTasting/wholeNetwork.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
	}
	.wineFairy{
		height: 370rpx;
		width: 686rpx;
		margin: 0 auto;
		position: relative;
		background-image: url("https://lovebirdopen.com/static/img/wineTasting/wineFairy.png");
		background-size: 100% 100%;
		background-repeat: no-repeat;
		
		/*
		控制排行定位
		*/
		.gettop{
			height: 176rpx;
			width: 158rpx;
			position: absolute;
			top: 44%;
			left: 4%;
			transform: translate(-50% -50%);
			// background: #007AFF;
		}

		.getleft{
			height: 176rpx;
			width: 158rpx;
			position: absolute;
			top: 38%;
			left: 38.5%;
			transform: translate(-50% -50%);
			// background: #007AFF;
		}
		.getbuttom{
			height: 176rpx;
			width: 158rpx;
			position: absolute;
			top: 50%;
			left: 74%;
			transform: translate(-50% -50%);
			// background: #007AFF;
		}
		.wineFairy_one{
			height: 60rpx;
			font-family: PingFang SC;
			font-style: normal;
			font-weight: normal;
			font-size: 24rpx;
			text-align: center;
			line-height: 50rpx;
			color: rgba(255, 255, 255, 0.7);
		}
		.wineFairy_two{
			height: 32rpx;
			font-size: 36rpx;
			line-height: 32rpx;
			color: #fff;
			text-align: center;
			margin-bottom: 5rpx;
		}
		.wineFairy_three{
			height: 48rpx;
			width: 154rpx;
			display: flex;
			justify-content: center;
			align-items: flex-start;
			margin-top: 20rpx;
			
			.wineFairy_1{
				font-family: PingFang SC;
				font-size: 24rpx;
				line-height: 48rpx;		
				margin-left: 8rpx;
				color: rgba(255, 255, 255, 0.7);
			}
		}
	}
	.wineFairyListTabs{
		width:686rpx;
		height: 96rpx;
		margin: 0 auto;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #FF753A;
		.wineFairyList_title{
			width: 70%;
			height: 100%;
			display: flex;
			align-items: center;
			
			view{
				width: 24%;
				font-size: 32rpx;
				color: #FFFFFF;
				text-align: center;
			}
		}
		.FairyList_1{
			height: 100%;
			width: 30%;
			text-align: center;
			line-height: 96rpx;
			font-size: 32rpx;
			color: #FFFFFF;
		}
	}
	
	.wineFairyList{
		width:686rpx;
		height: 116rpx;
		margin: 0 auto;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #FF9C55;
		
		.wineFairyListUO{
			width: 70%;
			height: 100%;
			display: flex;
			align-items: center;
			
			view{
				width: 26%;
				font-size: 32rpx;
				color: #FFFFFF;
				text-align: center;
			}
			.wineFairyListLogo{
				height: 80rpx;
				width: 80rpx;
				border-radius: 50%;
				overflow: hidden;
				
				image{
					height: 100%;
					width: 100%;
				}
			}
		}
		.FairyList_1{
			height: 100%;
			width: 30%;
			text-align: center;
			line-height: 116rpx;
			font-size: 32rpx;
			color: #FFFFFF;
		}
	}
	.more{
		width:686rpx;
		height: 60rpx;
		margin: 0 auto;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #FF9C55;
		.more_title{
			height: 40rpx;
			width: 100rpx;
			font-size: 24rpx;
			line-height: 40rpx;
			color: #fff;
		}
	}
	.warp {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
	}
	
	.rect {
		width: 556rpx;
		height: 70%;
		// background-color: #fff;
		position: relative;
		
		.getTheCap{
			height: 700rpx;
			width: 700rpx;
			// background-image: url('https://lovebirdopen.com/static/img/wineTasting/getTheCap.png');
			// background-size: 100% 100%;
			// background-repeat: no-repeat;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%,-50%);
			
			image{
				height:600rpx;
				width: 600rpx;
				margin: 0 auto;
				margin-top: 50rpx;
			}
		}
		.getTheCapclose{
			position: absolute;
			top: 84%;
			left: 50%;
			transform: translate(-50%,-50%);
		}
	}
	
</style>
